//
//  HViewController.m
//  FangXinLang
//
//  Created by AJY on 16/9/19.
//  Copyright © 2016年 AJY. All rights reserved.
//

#import "HViewController.h"
#import "UIButton+Button.h"
@interface HViewController ()

@end

@implementation HViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.alpha=1;
    UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom];
    btn.frame=CGRectMake(0, 0, 44, 44);
    [btn setImage:[UIImage imageNamed:@"navigationbar_back_icon@3x"] forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *item=[[UIBarButtonItem alloc]initWithCustomView:btn];
    self.navigationItem.leftBarButtonItem=item;
    [self.navigationController.navigationBar setBarTintColor:[UIColor whiteColor]];
    self.navigationItem.title = @"找不到网页";
    UIButton *btnR1=[[UIButton alloc]init];
    btnR1 = [UIButton ButtonWith:btnR1 andBackgroundImage:@"navigationbar_more_normal" andTitle:nil andTitleColor:nil andTarget: self andAction:@selector(right)];
    UIBarButtonItem *ite=[[UIBarButtonItem alloc]initWithCustomView:btnR1];
    self.navigationItem.rightBarButtonItem=ite;
}
-(void)right{

    
}
-(void)back{
    self.navigationController.navigationBar.alpha=0;
    self.hidesBottomBarWhenPushed=NO;
    [self.navigationController.navigationBar setBarTintColor:[UIColor redColor]];
    [self.navigationController popViewControllerAnimated:YES];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
